package com.example.controller;

import com.example.service.OpenFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class ConsumerController {


    @Autowired
    private OpenFeignService openFeignService;

    @GetMapping("/info")
    public String getProviderInfo(){
        return openFeignService.getProviderInfo();
    }


    @GetMapping("/timeout")
    public String testTimeout(){
        return openFeignService.testTimeout();
    }

}
